<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us" xml:lang="en-us">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="DC.Type" content="topic">
  <meta name="DC.Title" content="Step 6: Performing Backup">
  <meta name="product" content="">
  <meta name="DC.Relation" scheme="URI" content="goldendb-00009.html">
  <meta name="prodname" content="">
  <meta name="version" content="">
  <meta name="brand" content="30-OceanProtect Appliance 1.5.0-1.6.0 Help Center">
  <meta name="DC.Publisher" content="20241029">
  <meta name="prodname" content="csbs">
  <meta name="documenttype" content="usermanual">
  <meta name="DC.Format" content="XHTML">
  <meta name="DC.Identifier" content="goldendb-00015">
  <meta name="DC.Language" content="en-us">
  <link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
  <title>Step 6: Performing Backup</title>
 </head>
 <body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px">
  <a name="goldendb-00015"></a><a name="goldendb-00015"></a>
  <h1 class="topictitle1">Step 6: Performing Backup</h1>
  <div>
   <p>Before performing backup, you need to associate the resources to be protected with a specified SLA. The system protects the resources and periodically executes backup jobs based on the SLA. You can perform a backup job immediately through manual backup.</p>
   <div class="section">
    <h4 class="sectiontitle">Precautions</h4>
    <ul>
     <li>Copies generated by manual backup are retained for the period defined in the SLA.</li>
     <li>Before the backup, do not add, modify, or delete data in the database on the management node.</li>
    </ul>
   </div>
   <div class="section">
    <h4 class="sectiontitle">Procedure</h4>
    <ol>
     <li><span>Choose <span class="uicontrol" id="goldendb-00015__en-us_topic_0000001839142377_uicontrol338212673720"><b><span id="goldendb-00015__en-us_topic_0000001839142377_text1538282653712"><strong>Protection</strong></span> &gt; Databases &gt; GoldenDB</b></span>.</span></li>
     <li><span>On the <span class="uicontrol"><b><span><strong>Instance</strong></span></b></span> tab, select the instance to be protected and click <span class="uicontrol"><b><span><strong>Protect</strong></span></b></span>. </span><p></p><p>You can select multiple databases.</p> <p></p></li>
     <li><span>Select an SLA.</span><p></p>
      <div class="p" id="goldendb-00015__en-us_topic_0000001964713008_p16181740836">
       You can also click <span class="uicontrol" id="goldendb-00015__en-us_topic_0000001964713008_uicontrol169554520714"><b><span id="goldendb-00015__en-us_topic_0000001964713008_text179554516717"><strong>Create</strong></span></b></span> to create an SLA.
       <div class="note" id="goldendb-00015__en-us_topic_0000001964713008_note25947145710">
        <img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span>
        <div class="notebody">
         <p id="goldendb-00015__en-us_topic_0000001964713008_p125947145711"><span id="goldendb-00015__en-us_topic_0000001964713008_ph1413818422327">If a WORM policy has been configured for the resources to be protected, select an SLA without a WORM policy to avoid WORM policy conflicts.</span></p>
        </div>
       </div>
      </div> <p></p></li>
     <li><span>Set advanced backup parameters. </span><p></p>
      <div class="p">
       <a href="#goldendb-00015__en-us_topic_0000001387428129_table354613271506">Table 1</a> describes the related parameters. 
       <div class="tablenoborder">
        <a name="goldendb-00015__en-us_topic_0000001387428129_table354613271506"></a><a name="en-us_topic_0000001387428129_table354613271506"></a>
        <table cellpadding="4" cellspacing="0" summary="" id="goldendb-00015__en-us_topic_0000001387428129_table354613271506" frame="border" border="1" rules="all">
         <caption>
          <b>Table 1 </b>Advanced backup parameters
         </caption>
         <colgroup>
          <col style="width:22.7%">
          <col style="width:77.3%">
         </colgroup>
         <thead align="left">
          <tr>
           <th align="left" class="cellrowborder" valign="top" width="22.7%" id="mcps1.3.3.2.4.2.1.2.2.3.1.1"><p>Parameter</p></th>
           <th align="left" class="cellrowborder" valign="top" width="77.3%" id="mcps1.3.3.2.4.2.1.2.2.3.1.2"><p>Description</p></th>
          </tr>
         </thead>
         <tbody>
          <tr>
           <td class="cellrowborder" valign="top" width="22.7%" headers="mcps1.3.3.2.4.2.1.2.2.3.1.1 "><p>Script to Run Before Backup</p></td>
           <td class="cellrowborder" rowspan="3" valign="top" width="77.3%" headers="mcps1.3.3.2.4.2.1.2.2.3.1.2 "><p>You can configure <strong>Script to Run Before Backup</strong>, <strong>Script to Run upon Backup Success</strong>, and <strong>Script to Run upon Backup Failure</strong> based on site requirements. When the message "ProtectAgent started executing the prerequisite task." is displayed during a backup job, the configured script is executed in the corresponding scenario.</p>
            <div class="p">
             Enter the absolute path and name of the script and ensure that the user who logs in to the database host has the permission to run the script.
             <ul>
              <li>Windows OSs support <span class="uicontrol"><b>.bat</b></span> scripts, for example, <strong>C:\script.bat</strong>.</li>
              <li>Non-Windows OSs support <span class="uicontrol"><b>.sh</b></span> scripts, for example, <strong>/opt/script.sh</strong>.
               <div class="note">
                <span class="notetitle"> NOTE: </span>
                <div class="notebody">
                 <p>If <span class="uicontrol"><b>Script to Run upon Backup Success</b></span> is configured, the backup job status is displayed as <span class="uicontrol"><b>Successful</b></span> on the <span>product</span> even if the script fails to be run. Check whether the job details contain information indicating that a post-processing script fails to be run. If yes, correct the script in a timely manner.</p>
                </div>
               </div></li>
             </ul>
            </div></td>
          </tr>
          <tr>
           <td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.2.1.2.2.3.1.1 "><p>Script to Run upon Backup Success</p></td>
          </tr>
          <tr>
           <td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.2.1.2.2.3.1.1 "><p>Script to Run upon Backup Failure</p></td>
          </tr>
         </tbody>
        </table>
       </div>
      </div> <p></p></li>
     <li><span>Click <span class="uicontrol" id="goldendb-00015__en-us_topic_0000001964713008_uicontrol23691650677"><b>OK</b></span>.</span><p></p><p id="goldendb-00015__en-us_topic_0000001964713008_en-us_topic_0000001656691397_p25041111535">If the current system time is later than the start time of the first backup specified in the SLA, you can select <strong id="goldendb-00015__en-us_topic_0000001964713008_b9624185216713">Execute manual backup now</strong> in the dialog box that is displayed or choose to perform automatic backup periodically based on the backup policy set in the SLA.</p> <p></p></li>
     <li><span>Perform manual backup.</span><p></p>
      <div class="p">
       If you want to execute a backup job immediately, perform manual backup through the following operations. Otherwise, skip this step.
       <ol type="a">
        <li>Choose <span class="uicontrol"><b><span><strong>More</strong></span> &gt; <span><strong>Manual Backup</strong></span></b></span> in the row of the instance to be backed up.</li>
        <li>Set the name of the copy generated during manual backup.</li>
        <li>If this parameter is left unspecified, the system sets the copy name to <strong>backup_</strong><em>Timestamp</em> by default.</li>
        <li>Select a protection policy, which can be full backup, incremental backup, or log backup.
         <div class="note">
          <img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span>
          <div class="notebody">
           <p><span id="goldendb-00015__en-us_topic_0000001964713008_ph19374310343">For 1.6.0 and later versions, if the selected protection policy is different from that configured in the associated SLA, the WORM configuration does not take effect.</span></p>
          </div>
         </div></li>
        <li>Click <span class="uicontrol"><b><span><strong>OK</strong></span></b></span>.</li>
       </ol>
      </div> <p></p></li>
    </ol>
   </div>
  </div>
  <div>
   <div class="familylinks">
    <div class="parentlink">
     <strong>Parent topic:</strong> <a href="goldendb-00009.html">Backing Up a GoldenDB Database</a>
    </div>
   </div>
  </div>
 </body>
</html>